# Contributor: rahmanshaber <rahmanshaber@yahoo.com>
# Maintainer: rahmanshaber <rahmanshaber@yahoo.com>
pkgname=corestats
pkgver=4.3.0
pkgrel=0
pkgdesc="A system resource viewer from C-Suite"
arch="all !s390x !riscv64" # blocked by libcsys
url="https://gitlab.com/cubocore"
license="GPL-3.0-or-later"
depends="qt5-qtsvg"
makedepends="qt5-qtbase-dev libcprime-dev libcsys-dev lm-sensors-dev cmake ninja"
source="$pkgname-$pkgver.tar.gz::https://gitlab.com/cubocore/corestats/-/archive/v$pkgver/corestats-v$pkgver.tar.gz"
builddir="$srcdir/$pkgname-v$pkgver"
options="!check"

build() {
	cmake -B build \
		-GNinja \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DCMAKE_INSTALL_LIBDIR=lib \
		-DCMAKE_BUILD_TYPE=None
	cmake --build build
}

package() {
	DESTDIR="$pkgdir" cmake --install build
}

sha512sums="
ab8ebcc0bb3ec8501382b358dc2e31acb32ae400739c1131755fedb7f8964a79eaad6829126d0704d93dfa0c043fbf7c859f942fbb9323d8486f12dee5f87fa6  corestats-4.3.0.tar.gz
"
